package com.axjy.dao;

import com.axjy.pojo.User;
import com.axjy.web.dto.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 83536 on 2018/1/13.
 */
public interface UserMapper {
    List<User> searchRows(@Param("offset")Integer offset,@Param("limit")Integer limit,@Param("dto") UserDto dto);
    Integer searchTotal(@Param("dto")UserDto dto);
    void updateByRoleId(@Param("userId")Integer userId,@Param("roleId") Integer roleId);
    User get(Integer id);
    User login(@Param("name") String name,@Param("pwd") String pwd);
    void add(User user);
    void update(User user);
}
